package iuiga.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "message.async")
public class AsyncConfiguration {

    //是否开启线程池
    private boolean enable;
    //核心线程数
    private int coresize;
    //最大线程数
    private int maxsize;
    //存活时间
    private int keepalive;
}
